/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-27
 * Time: 23:27
 */
/**
 * 鸟类：继承Animal，实现Flyable接口
 * - 获得飞行能力
 */
class Bird extends Animal implements Flyable {
    public Bird(String name) {
        super(name);
    }

    @Override
    public void fly() {
        System.out.println(getName() + "鸟正在飞！");
    }

    @Override
    public void eat() {
        super.eat();
        System.out.println(getName() + "吃鸟粮");
    }
}
